﻿<%@ Page Title="My profile" Language="C#" MasterPageFile="~/AccManager.Master" AutoEventWireup="true" CodeBehind="Profile.aspx.cs" Inherits="MusaDor.Account.Profile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
        <div class="Section">
            <div class="UsersDetails">
                <asp:Label ID="Name" runat="server" Text="Username:" CssClass="miniTitle"></asp:Label>
                <br />
                <asp:Label ID="NameOfUser" Text="" runat="server" />
                <br />
                <br />
            <asp:FormView ID="UsersDetails" DataSourceID="UsersDetailsDataSource" runat="server"  CssClass="SectionData">
                <ItemTemplate>
                        <asp:Label ID="Email" runat="server" Text="E-mail:" CssClass="miniTitle"></asp:Label>
                        <br />
                        <asp:Label ID="SectionSubtitleLabel" runat="server" Text='<%# Bind("Email") %>' />
                        <br />
                        <br />
                        <asp:Label ID="CreateDate" runat="server" Text="Date of registration:" CssClass="miniTitle"></asp:Label>
                        <br />
                        <asp:Label ID="DateOfCreate" runat="server" Text='<%# Bind("CreateDate") %>' />
                </ItemTemplate>
            </asp:FormView>
                <br />
               <asp:Label ID="Role" runat="server" CssClass="miniTitle" Text="Role:"></asp:Label>
                <br />
                <asp:Label ID="RoleOfUser" runat="server"/>
            <asp:SqlDataSource ID="UsersDetailsDataSource" runat="server" 
                ConnectionString="<%$ ConnectionStrings:ApplicationServices %>" 
                                    SelectCommand="SELECT [UserId], [Email], [CreateDate] FROM [vw_aspnet_MembershipUsers] WHERE ([UserName] = @UserName)"  >
                <SelectParameters>
                    <asp:ControlParameter ControlID="NameOfUser" Name="UserName" 
                        PropertyName="Text" Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>           
            </div>                 
        </div>          
</asp:Content>
